import http from "@/utils/http";

// 分页
export const goodsUnitPage = (params)=> http.get('/merchantsapi/goods/unit/page', params)

// 列表
export const goodsUnitList = ()=> http.get('/merchantsapi/goods/unit/list')

// 新增
export const goodsUnitAdd = (data)=> http.post('/merchantsapi/goods/unit/add', data)

// 启用/禁用
export const goodsUnitEnabled = (id, enabled)=> http.post(`/merchantsapi/goods/unit/${id}/${enabled}`)